using Microsoft.EntityFrameworkCore;
using StudentVideo.Data.Entities;

namespace StudentVideo.Data;

public partial class AppDbContext {

   /// <summary>
   /// 课程
   /// </summary>
   public DbSet<CourseEntity> Courses { get; set; }

   /// <summary>
   /// 专业-课程映射
   /// </summary>
   public DbSet<MajorCourseMapEntity> MajorCourseMaps { get; set; }

   /// <summary>
   /// 专业
   /// </summary>
   public DbSet<MajorEntity> Majors { get; set; }

   /// <summary>
   /// 权限配置
   /// </summary>
   public DbSet<PermissionEntity> Permissions { get; set; }

   /// <summary>
   /// 角色表
   /// </summary>
   public DbSet<RoleEntity> Roles { get; set; }

   /// <summary>
   /// 角色 - 权限 映射表
   /// </summary>
   public DbSet<RolePermissionMapEntity> RolePermissionMaps { get; set; }

   /// <summary>
   /// 角色 - 系统菜单 映射
   /// </summary>
   public DbSet<RoleSystemMenuMapEntity> RoleSystemMenuMaps { get; set; }

   /// <summary>
   /// 学生表
   /// </summary>
   public DbSet<StudentEntity> Students { get; set; }

   /// <summary>
   /// 管理系统菜单
   /// </summary>
   public DbSet<SystemMenuEntity> SystemMenus { get; set; }

   /// <summary>
   /// 管理员用户
   /// </summary>
   public DbSet<UserEntity> Users { get; set; }

   /// <summary>
   /// 用户 - 角色 映射表
   /// </summary>
   public DbSet<UserRoleMapEntity> UserRoleMaps { get; set; }

   /// <summary>
   /// 课程视频
   /// </summary>
   public DbSet<VideoEntity> Videos { get; set; }

}
